package org.jeecg.modules.demo.base.service;

import org.jeecg.modules.demo.base.entity.ZnzfApprovalAppartAdmin;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.demo.base.entity.ZnzfApprovalOrRejectParam;
import org.jeecg.modules.demo.base.entity.ZnzfEmployeeScoreItem;

import java.util.List;

/**
 * @Description: 部门审核专员设定
 * @Author: jeecg-boot
 * @Date:   2022-03-27
 * @Version: V1.0
 */
public interface IZnzfApprovalAppartAdminService extends IService<ZnzfApprovalAppartAdmin> {

    /**
     * 根据userId查找具备审核资格的审核人员
     * @param userId
     * @return
     */
    ZnzfApprovalAppartAdmin getAdminByUserId(String userId);

    /**
     * 查找所有的审核人员
     * @return
     */
    List<ZnzfApprovalAppartAdmin> queryAllApprovalDepartAdmin();

    /**
     * 查找所有职员资质
     * @return
     */
    List<ZnzfEmployeeScoreItem> queryAllEmployeeScoreItems();

    /**
     * 根据scoreItemId查着所有审核信息
     * @param scoreItemId
     * @return
     */
    List<ZnzfEmployeeScoreItem> queryEmployeeScoreItemsByItemId(String scoreItemId);


    /**
     * 根据esiId查找对应的职员审核资质项
     * @param znzfApprovalOrRejectParam
     * @param realName
     * @return
     */
    int setState(ZnzfApprovalOrRejectParam znzfApprovalOrRejectParam, String realName);
}
